phy_collision_y

Returns the y position of a collision point.

语法:

phy_collision_y;


返回: Real(实数)


描述

This read-only array returns the y position of all points detected in a collision between two physics enabled instances.

NOTE: This variable is only available in the collision event of a physics enabled instance.


例如:

var i;
for(i = 0; i < phy_collision_points; i += 1;)
   {
   part_particles_create(global.Sname, phy_collision_x[i], phy_collision_y[i], global.Spark, 5);
   }

The above code creates particles at all the defined points of a collision between two physics enabled instances.


上一页: Physics Variables
next: phy_col_normal_x
© Copyright YoYo Games Ltd. 2018 All Rights Reserved